#pragma once

#include "at32f413_board.h"

typedef struct
{
  int32_t sample_freq;
  int16_t bandwidth;
  float coef1;
  float coef2;
  float output_temp;
} lowpass_filter_type;

void lowpass_filter_init(lowpass_filter_type *lowpass_handler);
float lowpass_filtering(lowpass_filter_type *lowpass_handler, float input_handler);